#include "Group.hh"

Group::Group()
: GroupCore(Lock::generate(MutexType), new WorkerChain)
{
	if (LockOfWorkingCount == NULL || ListOfWorker == NULL)
		notifyError(0, "Fail Group::Group.");
}

Group::~Group()
{
	if (LockOfWorkingCount != NULL)
		delete LockOfWorkingCount;
	
	if (ListOfWorker != NULL)
		delete ListOfWorker;
}
